{% extends '__base.tpl' %}
{% block head %}
<title>编程达人 我的项目</title>
<meta name="keywords" content="编程达人,我的项目" />

<!-- build:css -->
<link rel="stylesheet" href="../../../public/css/other/wangEditor.css">
<link rel="stylesheet" href="../../../public/css/other/wangEditor-extend.css">
<link rel="stylesheet" type="text/css" href="../../../public/css/page/contentPage.css" />
<link rel="stylesheet" type="text/css" href="../../../public/css/page/popup.css" />
<!-- endbuild -->
{% endblock %}

{% block body %}
<div id="project_content"></div>

<script id='project_content_tpl' type="text/html">
    <div id='box' data-title="编程达人项目接单-<%data.title%>" data-id="<%data.id%>" data-comment_type="4"
         data-description="编程达人项目接单-<%data.title%>" data-recv_memberid="<%data.recvMemberId%>" data-uptype="project">
        <div id='content' data-memberid="<%data.sendMemberId%>">
            <div class="contHead clearfix relative" >
           <span class="fleft iblock answer-title" >
               <span class="font24"><%data.title%></span>
               <%if data.price >0 %>
                  <span class="font13 red">
                      —已付<%if data.priceType==1%>全款<%/if%><%if data.priceType==2%>定金<%/if%><%data.price%>元
                  </span>
               <%/if%>
           </span>
                <span class="fright btnStyleBlue middle-right" style="margin: 0">项目接单</span>
            </div>
            <div class="contBody">
                <ul class="darenList">
                    <li class="darenList-item clearfix">
                        <div class="head-img-box">
                            <a target="_blank" href="/<%data.sendMemberId%>/userInfo.html">
                                <img class="fleft head-img" src="<%=imgPath(data.sendHeader)%>" />
                            </a>
                        </div>
                        <div class="fleft">
                            <h5 class="font16 clo3">
                                <a target="_blank"  href="/<%data.sendMemberId%>/userInfo.html">
                                    <%data.sendNickName%>
                                    <%if data.sendMemberType==='V'%>
                                    <img src="../../../public/images/daren1.jpg" class="iconLV1" />
                                    <%else if data.sendMemberType==='D'%>
                                    <img src="../../../public/images/daren2.jpg" class="iconLV" />
                                    <%/if%>
                                    <span class="clo9 ml10">等级 <%data.sendMemberType%><%=toFloat(data.sendGradeValue/100,0) %></span>
                                </a>
                            <span  class="hide" data-memberid="<%data.sendMemberId%>" id="memberNotice">
                                <button class="btnStyleS ml20 hide"
                                        onclick="BASE.COMMON.noticeToMember(this)"
                                        data-memberid="<%data.sendMemberId%>">+ 关注</button>
                                <button class="btnStyleC ml20 hide"
                                        onclick="BASE.COMMON.cancelNotice(this)"
                                        data-memberid="<%data.sendMemberId%>">已关注</button>
                            </span>
                             <span id="memberModify" <%if data.status>3%> class="hide"<%/if%> style="display:none">
                                <button data-content="<%data.content%>"
                                         data-title="<%data.title%>"
                                         data-price="<%data.price%>"
                                         data-file_url="<%data.fileUrl%>"
                                         data-price_type="<%data.priceType%>"
                                         onclick="BASE.PROJECTCONTENT.modifyPopupShow(this)"
                                         class="btnBlueM ml30"> 修改</button>
                                </span>
                            </h5>
                            <div class="clo9 font12"><%dateFormat=(data.createDateTime)%></div>
                            <div class="ptb20 clo3 editor-content w-e-text"> <%#data.content%></div>
                        </div>
                    </li>
                </ul>
            </div>
        </div><!-- end content-->

        <div class="lmessage">
            <div class="commentTag" style="overflow: visible">
                <ul class="clearfix">
                    <li>浏览 <em><%data.clickCount%></em></li>
                    <li>分享 <em><%data.shareCount%></em></li>
                    <%if projectStatus(data.status)%>
                    <li>
                        <button class="btn red-border-btn"><%=projectStatus(data.status)%></button>
                    </li>
                    <%/if%>
                    <li id="projectModify" class="hide">
                        <%if data.status <5 %>
                        <button class="btnBlueM ml10" onclick="BASE.PROJECTCONTENT.cancelProject(this)">撤单</button>
                        <%/if%>
                        <%if data.status == 4%>
                        <button class="btnBlueM ml10" data-memberid="<%data.recvMemberId%>"
                                onclick="BASE.PROJECTCONTENT.doneProject(this)">交易结束</button>
                        <span class="font13 clo6 ml5">
                            <span class="blue">友情提示：</span>该笔交易免手续费
                        </span>
                        <%/if%>
                    </li>
                    <li class="middle-right">
                        <div class="tright">
                            <a class="blue u" target="_blank" href="/project_rule.html">交易说明？</a>
                            <%if data.fileUrl%>
                            <a class="btnBlueM" target="_blank"  href="<%=imgPath(data.fileUrl)%>">下载需求文档</a>
                            <%/if%>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="lmessageB">
            <span class="lmText">跟帖接单
                <% if data.commentCount>0 %>
                (<%data.commentCount%>)
                <%/if %>
            </span>
            </div>
            <div class="lmessageC relative" id="comment">
                {% include '__comment_reply_list_textarea_project.html' %}
                {% include '__page.html' %}
            </div>
        </div>
        <div class="fixed-icon">
            <a href="javascript:;"class="fixed-icon-item"  onclick="BASE.COMMON.scrollTop($('#content').height())">
                <img width="25px" src="../../../public/images/talk.png" alt="talk">
                <%if data.commentCount>0%>
                <% data.commentCount%>
                <%/if%>
            </a>
            <a href="javascript:;" class="fixed-icon-item" onclick="BASE.COMMON.scrollTop(1)">
                <img width="25px"  src="../../../public/images/backhome.png" alt="top">
            </a>
        </div>
    </div>
</script>
{% include '__comment_reply_list_script.html' %}
{% endblock %}

{% block footer %}
{{ super() }}
<div id="modify">
    {% include '__popup_project.html' %}
</div>
{% endblock %}

{% block script %}
{{ super() }}
<!-- build:js -->
<script src="../../../public/js/page/plugin/wangEditor.js"></script>
<script src="../../../public/js/page/plugin/wangEditor-extentd.js"></script>
<script src="../../../public/js/page/plugin/nativepage.js"></script>
<script src='../../../public/js/page/common/uploadAnswer.js'></script>
<script src='../../../public/js/page/project/project_common.js'></script>
<script src='../../../public/js/page/project/project_content.js'></script>>
<!-- endbuild -->
{% endblock %}